package zuoye3;

public class GoldenCard extends Card {
    public GoldenCard(String id, double money, int pay) {
        super(id, money, pay);
    }

    @Override
    public void payMoney(double money ,double paymoney) {
       // System.out.println("使用金卡支付");
         double needpaymoney = paymoney * 0.8;
        System.out.println("使用金卡支付"+"实际支付："+needpaymoney);
        System.out.println("会员卡余额：" +(money-needpaymoney));
    }
}
